package com.common.supply.controller;

import com.common.supply.domain.dto.IdentifyDto;
import com.common.supply.service.IExtIdentityResultService;
import lombok.AllArgsConstructor;
import org.springframework.validation.annotation.Validated;
import org.springframework.web.bind.annotation.*;

/**
 *
 * @author cyh
 * @date 2022/5/7 12:02 下午
 */
@AllArgsConstructor
@RestController
@RequestMapping("/common/identity")
public class IdentityController {



    private IExtIdentityResultService iExtIdentityResultService;



    /**
     * BVN/Account 查询接口
     * @param identifyDto
     */
    @PostMapping("/query")
    public void queryIdentityInfo(@Validated @RequestBody IdentifyDto identifyDto) {

        // 查询本地数据
        iExtIdentityResultService.queryIdentityInfo(identifyDto);

    }

}
